<template>
	<div class="main">
		<div class="main_a">
			商品Id值为：{{$route.params.id}}
		</div>
	</div>
</template>
<script>
	export default {
		name: "main",
		data() {
			return {
				
			}
		},
		mounted(){
			this.conSole();
		},
		methods: {
			conSole(){
				console.log(this.$route.params.id)
			}
		}
	}
</script>
<style scoped lang="scss">
	.main {
		width: 100%;
		height: 100%;
		font-size: 16px;
		.main_a{
			width: 100%;
			padding-top: 10px;
			text-align: center;
			font-size: 24px;
			color: red;
		}
	}
</style>